﻿using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using MyAspNetCoreTodo.Identity;
using MyAspNetCoreTodo.Models;
namespace MyAspNetCoreTodo.Datas
{
    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public ApplicationDbContext(
       DbContextOptions<ApplicationDbContext> options)
       : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            // ...
        }

        public DbSet<TodoItem> Items { get; set; }
        public DbSet<ApplicationUser> Users { get; set; }
    }
}
